--- lua-resty-template
--- https://github.com/bungle/lua-resty-template

local template = require("resty.template")
template.caching(false)
local context = {
    title = "测试",
    name = "lucy",
    description = "<script>alert(1);</script>",
    age = 40,
    hobby = { "电影", "音乐", "阅读" },
    score = { 语文 = 90, 数学 = 80, 英语 = 70 },
    score2 = {
        { name = "语文", score = 90 },
        { name = "数学", score = 80 },
        { name = "英语", score = 70 }
    }
}

template.render("view.html", context)
